<?php
require("admin/conn.php");
?>
		<div id="left">
				<div id="login">

				</div>
<?php 
$sql = "SELECT Title,Art_id FROM artcontent ORDER BY PostData DESC LIMIT 6";
$result = mysql_query($sql);

?> 				
				<div id="parameter">
					   <div id="latest">
							   <h4><a href="menu1.html" class="menuLink">最近文章</a></h4>
							   <ul class="menu" id="menu1">
<?php
if($num = mysql_num_rows($result))
{
    while($row = mysql_fetch_array($result,MYSQL_ASSOC))
    {
?> 
									  <li><?php echo"<a href=artview.php?Art_id=". $row['Art_id'] .">".$row['Title']."</a>"; ?></li>

<?php  } }?>							  
							   </ul>
				        </div>
<?php 
$sql = "SELECT * FROM artclass";
$result = mysql_query($sql);

?> 
				        <div id="category">
							   <h4><a href="menu2.html" class="menuLink">文章分类</a></h4>
							   <ul class="menu" id="menu2">
<?php
if($num = mysql_num_rows($result))
{
    while($row = mysql_fetch_array($result,MYSQL_ASSOC))
    {
?>                                                           
									  <li><a href="#"><?php echo $row['cs_name'];?></a></li>
<?php  } }?>                                      							  
							   </ul>
				        </div>

				        <div id="links">
							   <h4><a href="menu3.html" class="menuLink">网站链接</a></h4>
							   <ul class="menu" id="menu3">
									  <li><a href="#">HTML+CSSS主流思想</a></li>
									  <li><a href="#">网页设计</a></li>
									  <li><a href="#">色彩理论</a></li>
									  <li><a href="#">书籍</a></li>	
									  <li><a href="#">实验室</a></li>
									  <li><a href="#">php程序</a></li>
									  <li><a href="#">JavaScript教程</a></li>
									  <li><a href="#">数据库设计</a></li>							  
							   </ul>
				        </div>
					   
				</div>

		</div>